package com.itguigu;

import com.itguigu.pojo.Dog;
import com.itguigu.pojo.SimpleMovieLister;
import com.itguigu.pojo.UserService1;
import com.itguigu.pojo.cat;
import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-01.xml");
//        cat cat = (cat) context.getBean("cat1");
//        cat.shout();
//        Dog dog = (Dog) context.getBean("dog1");

//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-02.xml");
//        UserService1 userservice1 = (UserService1) context.getBean("userservice3");
//        System.out.println(userservice1);
//        SimpleMovieLister simpleMocieLister = (SimpleMovieLister) context.getBean("simpleMocieLister");
//        System.out.println(simpleMocieLister);

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-01.xml","spring-02.xml");

    }


}